<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <% include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" type="text/css" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px">
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="widget-header bg-themeprimary">
                <span class="widget-caption">讨论区管理</span>
            </div>
            <div class="widget-body">
                <div id="registration-form">
                    <form role="form">
                        <div class="form-title">讨论版块列表</div>
                        <div class="row">
                            <div class="col-md-12">
                                <div class="buttons-preview" id="toobar">
                                    <a href="javascript:void(0);" class="btn btn-azure js-add">创建版块</a>
                                </div>
                                <table id="myTable"></table>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-example-modal-lg" id="setdiscuss" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">讨论版块设置</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form1">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">${i18n('system.sortNo')}：</label>
                        <div class="col-sm-9">
                            <input type="number" class="form-control" name="sortNo" id="sortNo" placeholder="${i18n('system.sortNo')}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">版块名称：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="title" name="title" placeholder="版块名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">版块类型：</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="sortId" name="sortId" style="border-radius: 0px;">
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">版块主：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="edition" name="edition" placeholder="版块主" readonly="readonly" opt-id="edition" onclick="selectUser(this,'false');">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">开放对象(人员)：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="userPriv" name="userPriv" placeholder="人员" rows="3" readonly="readonly" opt-id="userPriv" onclick="selectUser(this,'true');"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">开放对象(部门)：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="deptPriv" name="deptPriv" placeholder="部门" rows="3" readonly="readonly" opt-id="deptPriv" onclick="selectDept(this,'true');"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">开放对象(职务)：</label>
                        <div class="col-sm-9">
                            <textarea class="form-control" id="levelPriv" name="levelPriv" placeholder="职务" rows="3" readonly="readonly" opt-id="levelPriv" onclick="selectUserLevel(this,'true');"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">是否需要审批：</label>
                        <div class="col-sm-9">
                            <label style="padding-top: 10px;"> <input class="checkbox-slider colored-blue" type="checkbox" name="needApproval" value="1"> <span class="text"></span>
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">查看权限：</label>
                        <div class="col-sm-9">
                            <label> <input name="readPriv" type="radio" class="colored-blue" value="1"> <span class="text">发布人</span>
                            </label> <label> <input name="readPriv" type="radio" class="colored-blue" value="2" checked="checked"> <span class="text">所有人</span>
                        </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">版块说明：</label>
                        <div class="col-sm-9">
                            <textarea rows="5" cols="" class="form-control" rows="3" id="remark" name="remark"></textarea>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-save">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
</body>
<% include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/discuss/setdiscuss.js"></script>
</html>
